package com.yy.dto;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("添加合同的入参模型")
public class PayContractAddDTO {
    /**商铺ID**/
    @NotNull(message = "商铺ID不能为空")
    private Long houseId;
    /**商铺名称**/
    @NotBlank(message = "商铺名称")
    private String houseName;
    /**业主ID**/
    @NotNull(message = "业主ID不能为空")
    private Long ownerId;
    /**商铺名称**/
    @NotBlank(message = "业主姓名")
    private String ownerName;
    /**商铺名称**/
    @NotBlank(message = "公司名称")
    private String ownerCompany;
    /**开始时间**/
    @NotNull(message = "合同开始时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    /**合同周期**/
    private String period;
    /**出租价格|出售价格**/
    @NotNull(message = "出租价格|出售价格不能为空")
    private BigDecimal rentFee;
    /**合同类型rented  sale**/
    @NotBlank(message = "合同类型不能为空")
    private String contractType;
    /**从事行业**/
    private String userTrade;
    /**从事行业说明**/
    private String userTradeDetail;
    /**合同的收费项目ID [pay_fee_item]**/
    private Integer [] contractFeeIds;
}

